package com.yaDuo.ticketUnion

import com.yaDuo.common.base.BaseApplication
import com.yaDuo.common.util.CrashReportHandler
import com.yaDuo.common.util.LogUtil
import com.yaDuo.ticketUnion.viewmodel.AppViewModel

class TicketUnionApplication : BaseApplication() {

    companion object {
        private const val TAG = "TicketUnionApplication"
    }

    override fun onCreate() {
        super.onCreate()
        LogUtil.d(TAG, "onCreate start")
        CrashReportHandler.init(this)
        getAppViewModel().init()
    }

    private fun getAppViewModel(): AppViewModel {
        return getApplicationScopeViewModel(AppViewModel::class.java)
    }

}